﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Vehicle//交通工具
    {
        private string name;
        public string Name { get; set; }

        public Vehicle(string name)
        {
            this.name = name;
        }

        public void Hello() 
        {
            Console.WriteLine("名字叫{0}的交通工具",this.name);
        }
    }
}
